<%--
    Document   : index
    Author     : Thomas
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="header.jsp" %>

<!-- Content -->

<div id="container">
	<div id="content" role="main">

                <div id="post-0" class="post error404 not-found">
			<h1 class="entry-title">Tracking</h1>
			<div class="entry-content">
                            <p>Here you can track the progress of a book you have purchased.</p>
                            <%
                            if(session.getAttribute("loggedin_username") != null){
                                out.println("<font color='red'>Tracking Service is currently down, please try again later!</font>");
                            }
                            //If user is not logged in asks to log in before proceeding
                            else{
                                session.setAttribute("currentPage", request.getRequestURL()+"?wishlist");
                                out.println("Please sign in to proceed:"); %>
                                <p></p>
                                <form action="dologin.jsp" method=post>
                                <table>
                                    <tr><td>Username: </td><td colspan=2><input type="text" name="username" value="" size=20  maxlength=50></td></tr>
                                    <tr><td>Password: </td><td colspan=2><input type="password" name="password" value="" size=20  maxlength=20></td></tr>
                                    <tr><td colspan=2></td><td><a HREF="checkout.jsp"><input type="submit" value="Submit"></a> <input type="reset"  value="Reset"></td></tr>
                                </table>
                                </form>
                            <% } %>
                        </div><!-- .entry-content -->
                </div><!-- #post-0 -->
         </div><!-- #content -->
</div><!-- #container -->

<%@ include file="sidebar.jsp" %>

<!-- /Content -->

<%@ include file="footer.jsp" %>
